package lily.phs.object;

import lily.phs.database.Constants;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;


public class NewBornChild implements Constants{
	
	private Context myContext;
	public int  boch_profileid=-1;
	public int  boch_sex=-1;
	public String  boch_birthdar="";
	public String  boch_perid="";
	public String  boch_fam_addr="";
	public String  boch_fath_name="";
	public String  boch_fath_pro="";
	public String  boch_fath_tel="";
	public String  boch_fath_birth="";
	public String  boch_mum_name="";
	public String  boch_mum_pro="";
	public String  boch_mum_tel="";
	public String  boch_mum_birth="";
	public int  boch_gw=-1;
	public int  boch_mum_disease=-1;
	public String  boch_mum_disease_other="";
	public String  boch_part_inst="";
	public String  boch_born_inst="";
	public String  boch_born_inst_other="";
	public int  boch_smother=-1;
	public int  boch_abnormal=-1;
	public String  boch_abnormal_info="";
	public int  boch_hearing=-1;
	public int  boch_disease=-1;
	public String  boch_disease_other="";
	public float  boch_born_weight=-1;
	public float  boch_now_weight=-1;
	public float  boch_heig_value=-1;
	public int  boch_feed_way=-1;
	public float  boch_feed_milk=-1;
	public int  boch_feed_milk_num=-1;
	public int  boch_vomit=-1;
	public int  boch_faeces=-1;
	public int  boch_faeces_num=-1;
	public float  boch_body_temp=-1;
	public int  boch_pulse=-1;
	public int  boch_breath=-1;
	public int  boch_face=-1;
	public String  boch_face_other="";
	public int  boch_icterus=-1;
	public int  boch_bregma_choi=-1;
	public float  boch_bregma_left=-1;
	public float  boch_bregma_right=-1;
	public String  boch_bregma_other="";
	public int  boch_eye_appearance=-1;
	public String  boch_eye_appearance_abn="";
	public int  boch_legs=-1;
	public String  boch_legs_abn="";
	public int  boch_neck_mass=-1;
	public String  boch_neck_mass_abn="";
	public int  boch_ear_appearance=-1;
	public String  boch_ear_appearance_abn="";
	public int  boch_nose=-1;
	public String  boch_nose_abn="";
	public int  boch_skin=-1;
	public String  boch_skin_other="";
	public int  boch_oral=-1;
	public String  boch_oral_abn="";
	public int  boch_anus=-1;
	public String  boch_anus_abn="";
	public int  boch_card=-1;
	public String  boch_card_abn="";
	public int  boch_genital=-1;
	public String  boch_genital_abn="";
	public int  boch_abdomen=-1;
	public String  boch_abdomen_abn="";
	public int  boch_spine=-1;
	public String  boch_spine_abn="";
	public int  boch_umbilical=-1;
	public String  boch_umbilical_other="";
	public int  boch_refe_choi=-1;
	public String  boch_refe_reasion="";
	public String  boch_refe_inst="";
	public String  boch_guide="";
	public String  boch_now_date="";
	public String  boch_next_place="";
	public String  boch_next_date="";
	public String  boch_doctor="";
	
	public NewBornChild(Context context){
		this.myContext=context;
	}
	
	public int getBoch_profileid() {
		return boch_profileid;
	}
	public void setBoch_profileid(int bochProfileid) {
		boch_profileid = bochProfileid;
	}
	public int getBoch_sex() {
		return boch_sex;
	}
	public void setBoch_sex(int bochSex) {
		boch_sex = bochSex;
	}
	public String getBoch_birthdar() {
		return boch_birthdar;
	}
	public void setBoch_birthdar(String bochBirthdar) {
		boch_birthdar = bochBirthdar;
	}
	public String getBoch_perid() {
		return boch_perid;
	}
	public void setBoch_perid(String bochPerid) {
		boch_perid = bochPerid;
	}
	public String getBoch_fam_addr() {
		return boch_fam_addr;
	}
	public void setBoch_fam_addr(String bochFamAddr) {
		boch_fam_addr = bochFamAddr;
	}
	public String getBoch_fath_name() {
		return boch_fath_name;
	}
	public void setBoch_fath_name(String bochFathName) {
		boch_fath_name = bochFathName;
	}
	public String getBoch_fath_pro() {
		return boch_fath_pro;
	}
	public void setBoch_fath_pro(String bochFathPro) {
		boch_fath_pro = bochFathPro;
	}
	public String getBoch_fath_tel() {
		return boch_fath_tel;
	}
	public void setBoch_fath_tel(String bochFathTel) {
		boch_fath_tel = bochFathTel;
	}
	public String getBoch_fath_birth() {
		return boch_fath_birth;
	}
	public void setBoch_fath_birth(String bochFathBirth) {
		boch_fath_birth = bochFathBirth;
	}
	public String getBoch_mum_name() {
		return boch_mum_name;
	}
	public void setBoch_mum_name(String bochMumName) {
		boch_mum_name = bochMumName;
	}
	public String getBoch_mum_pro() {
		return boch_mum_pro;
	}
	public void setBoch_mum_pro(String bochMumPro) {
		boch_mum_pro = bochMumPro;
	}
	public String getBoch_mum_tel() {
		return boch_mum_tel;
	}
	public void setBoch_mum_tel(String bochMumTel) {
		boch_mum_tel = bochMumTel;
	}
	public String getBoch_mum_birth() {
		return boch_mum_birth;
	}
	public void setBoch_mum_birth(String bochMumBirth) {
		boch_mum_birth = bochMumBirth;
	}
	public int getBoch_gw() {
		return boch_gw;
	}
	public void setBoch_gw(int bochGw) {
		boch_gw = bochGw;
	}
	public int getBoch_mum_disease() {
		return boch_mum_disease;
	}
	public void setBoch_mum_disease(int bochMumDisease) {
		boch_mum_disease = bochMumDisease;
	}
	public String getBoch_mum_disease_other() {
		return boch_mum_disease_other;
	}
	public void setBoch_mum_disease_other(String bochMumDiseaseOther) {
		boch_mum_disease_other = bochMumDiseaseOther;
	}
	public String getBoch_part_inst() {
		return boch_part_inst;
	}
	public void setBoch_part_inst(String bochPartInst) {
		boch_part_inst = bochPartInst;
	}
	public String getBoch_born_inst() {
		return boch_born_inst;
	}
	public void setBoch_born_inst(String bochBornInst) {
		boch_born_inst = bochBornInst;
	}
	public String getBoch_born_inst_other() {
		return boch_born_inst_other;
	}
	public void setBoch_born_inst_other(String bochBornInstOther) {
		boch_born_inst_other = bochBornInstOther;
	}
	public int getBoch_smother() {
		return boch_smother;
	}
	public void setBoch_smother(int bochSmother) {
		boch_smother = bochSmother;
	}
	public int getBoch_abnormal() {
		return boch_abnormal;
	}
	public void setBoch_abnormal(int bochAbnormal) {
		boch_abnormal = bochAbnormal;
	}
	public String getBoch_abnormal_info() {
		return boch_abnormal_info;
	}
	public void setBoch_abnormal_info(String bochAbnormalInfo) {
		boch_abnormal_info = bochAbnormalInfo;
	}
	public int getBoch_hearing() {
		return boch_hearing;
	}
	public void setBoch_hearing(int bochHearing) {
		boch_hearing = bochHearing;
	}
	public int getBoch_disease() {
		return boch_disease;
	}
	public void setBoch_disease(int bochDisease) {
		boch_disease = bochDisease;
	}
	public String getBoch_disease_other() {
		return boch_disease_other;
	}
	public void setBoch_disease_other(String bochDiseaseOther) {
		boch_disease_other = bochDiseaseOther;
	}
	public float getBoch_born_weight() {
		return boch_born_weight;
	}
	public void setBoch_born_weight(float bochBornWeight) {
		boch_born_weight = bochBornWeight;
	}
	public float getBoch_now_weight() {
		return boch_now_weight;
	}
	public void setBoch_now_weight(float bochNowWeight) {
		boch_now_weight = bochNowWeight;
	}
	public float getBoch_heig_value() {
		return boch_heig_value;
	}
	public void setBoch_heig_value(float bochHeigValue) {
		boch_heig_value = bochHeigValue;
	}
	public int getBoch_feed_way() {
		return boch_feed_way;
	}
	public void setBoch_feed_way(int bochFeedWay) {
		boch_feed_way = bochFeedWay;
	}
	public float getBoch_feed_milk() {
		return boch_feed_milk;
	}
	public void setBoch_feed_milk(float bochFeedMilk) {
		boch_feed_milk = bochFeedMilk;
	}
	public int getBoch_feed_milk_num() {
		return boch_feed_milk_num;
	}
	public void setBoch_feed_milk_num(int bochFeedMilkNum) {
		boch_feed_milk_num = bochFeedMilkNum;
	}
	public int getBoch_vomit() {
		return boch_vomit;
	}
	public void setBoch_vomit(int bochVomit) {
		boch_vomit = bochVomit;
	}
	public int getBoch_faeces() {
		return boch_faeces;
	}
	public void setBoch_faeces(int bochFaeces) {
		boch_faeces = bochFaeces;
	}
	public int getBoch_faeces_num() {
		return boch_faeces_num;
	}
	public void setBoch_faeces_num(int bochFaecesNum) {
		boch_faeces_num = bochFaecesNum;
	}
	public float getBoch_body_temp() {
		return boch_body_temp;
	}
	public void setBoch_body_temp(float bochBodyTemp) {
		boch_body_temp = bochBodyTemp;
	}
	public int getBoch_pulse() {
		return boch_pulse;
	}
	public void setBoch_pulse(int bochPulse) {
		boch_pulse = bochPulse;
	}
	public int getBoch_breath() {
		return boch_breath;
	}
	public void setBoch_breath(int bochBreath) {
		boch_breath = bochBreath;
	}
	public int getBoch_face() {
		return boch_face;
	}
	public void setBoch_face(int bochFace) {
		boch_face = bochFace;
	}
	public String getBoch_face_other() {
		return boch_face_other;
	}
	public void setBoch_face_other(String bochFaceOther) {
		boch_face_other = bochFaceOther;
	}
	public int getBoch_icterus() {
		return boch_icterus;
	}
	public void setBoch_icterus(int bochIcterus) {
		boch_icterus = bochIcterus;
	}
	public int getBoch_bregma_choi() {
		return boch_bregma_choi;
	}
	public void setBoch_bregma_choi(int bochBregmaChoi) {
		boch_bregma_choi = bochBregmaChoi;
	}
	public float getBoch_bregma_left() {
		return boch_bregma_left;
	}
	public void setBoch_bregma_left(float bochBregmaLeft) {
		boch_bregma_left = bochBregmaLeft;
	}
	public float getBoch_bregma_right() {
		return boch_bregma_right;
	}
	public void setBoch_bregma_right(float bochBregmaRight) {
		boch_bregma_right = bochBregmaRight;
	}
	public String getBoch_bregma_other() {
		return boch_bregma_other;
	}
	public void setBoch_bregma_other(String bochBregmaOther) {
		boch_bregma_other = bochBregmaOther;
	}
	public int getBoch_eye_appearance() {
		return boch_eye_appearance;
	}
	public void setBoch_eye_appearance(int bochEyeAppearance) {
		boch_eye_appearance = bochEyeAppearance;
	}
	public String getBoch_eye_appearance_abn() {
		return boch_eye_appearance_abn;
	}
	public void setBoch_eye_appearance_abn(String bochEyeAppearanceAbn) {
		boch_eye_appearance_abn = bochEyeAppearanceAbn;
	}
	public int getBoch_legs() {
		return boch_legs;
	}
	public void setBoch_legs(int bochLegs) {
		boch_legs = bochLegs;
	}
	public String getBoch_legs_abn() {
		return boch_legs_abn;
	}
	public void setBoch_legs_abn(String bochLegsAbn) {
		boch_legs_abn = bochLegsAbn;
	}
	public int getBoch_neck_mass() {
		return boch_neck_mass;
	}
	public void setBoch_neck_mass(int bochNeckMass) {
		boch_neck_mass = bochNeckMass;
	}
	public String getBoch_neck_mass_abn() {
		return boch_neck_mass_abn;
	}
	public void setBoch_neck_mass_abn(String bochNeckMassAbn) {
		boch_neck_mass_abn = bochNeckMassAbn;
	}
	public int getBoch_ear_appearance() {
		return boch_ear_appearance;
	}
	public void setBoch_ear_appearance(int bochEarAppearance) {
		boch_ear_appearance = bochEarAppearance;
	}
	public String getBoch_ear_appearance_abn() {
		return boch_ear_appearance_abn;
	}
	public void setBoch_ear_appearance_abn(String bochEarAppearanceAbn) {
		boch_ear_appearance_abn = bochEarAppearanceAbn;
	}
	public int getBoch_nose() {
		return boch_nose;
	}
	public void setBoch_nose(int bochNose) {
		boch_nose = bochNose;
	}
	public String getBoch_nose_abn() {
		return boch_nose_abn;
	}
	public void setBoch_nose_abn(String bochNoseAbn) {
		boch_nose_abn = bochNoseAbn;
	}
	public int getBoch_skin() {
		return boch_skin;
	}
	public void setBoch_skin(int bochSkin) {
		boch_skin = bochSkin;
	}
	public String getBoch_skin_other() {
		return boch_skin_other;
	}
	public void setBoch_skin_other(String bochSkinOther) {
		boch_skin_other = bochSkinOther;
	}
	public int getBoch_oral() {
		return boch_oral;
	}
	public void setBoch_oral(int bochOral) {
		boch_oral = bochOral;
	}
	public String getBoch_oral_abn() {
		return boch_oral_abn;
	}
	public void setBoch_oral_abn(String bochOralAbn) {
		boch_oral_abn = bochOralAbn;
	}
	public int getBoch_anus() {
		return boch_anus;
	}
	public void setBoch_anus(int bochAnus) {
		boch_anus = bochAnus;
	}
	public String getBoch_anus_abn() {
		return boch_anus_abn;
	}
	public void setBoch_anus_abn(String bochAnusAbn) {
		boch_anus_abn = bochAnusAbn;
	}
	public int getBoch_card() {
		return boch_card;
	}
	public void setBoch_card(int bochCard) {
		boch_card = bochCard;
	}
	public String getBoch_card_abn() {
		return boch_card_abn;
	}
	public void setBoch_card_abn(String bochCardAbn) {
		boch_card_abn = bochCardAbn;
	}
	public int getBoch_genital() {
		return boch_genital;
	}
	public void setBoch_genital(int bochGenital) {
		boch_genital = bochGenital;
	}
	public String getBoch_genital_abn() {
		return boch_genital_abn;
	}
	public void setBoch_genital_abn(String bochGenitalAbn) {
		boch_genital_abn = bochGenitalAbn;
	}
	public int getBoch_abdomen() {
		return boch_abdomen;
	}
	public void setBoch_abdomen(int bochAbdomen) {
		boch_abdomen = bochAbdomen;
	}
	public String getBoch_abdomen_abn() {
		return boch_abdomen_abn;
	}
	public void setBoch_abdomen_abn(String bochAbdomenAbn) {
		boch_abdomen_abn = bochAbdomenAbn;
	}
	public int getBoch_spine() {
		return boch_spine;
	}
	public void setBoch_spine(int bochSpine) {
		boch_spine = bochSpine;
	}
	public String getBoch_spine_abn() {
		return boch_spine_abn;
	}
	public void setBoch_spine_abn(String bochSpineAbn) {
		boch_spine_abn = bochSpineAbn;
	}
	public int getBoch_umbilical() {
		return boch_umbilical;
	}
	public void setBoch_umbilical(int bochUmbilical) {
		boch_umbilical = bochUmbilical;
	}
	public String getBoch_umbilical_other() {
		return boch_umbilical_other;
	}
	public void setBoch_umbilical_other(String bochUmbilicalOther) {
		boch_umbilical_other = bochUmbilicalOther;
	}
	public int getBoch_refe_choi() {
		return boch_refe_choi;
	}
	public void setBoch_refe_choi(int bochRefeChoi) {
		boch_refe_choi = bochRefeChoi;
	}
	public String getBoch_refe_reasion() {
		return boch_refe_reasion;
	}
	public void setBoch_refe_reasion(String bochRefeReasion) {
		boch_refe_reasion = bochRefeReasion;
	}
	public String getBoch_refe_inst() {
		return boch_refe_inst;
	}
	public void setBoch_refe_inst(String bochRefeInst) {
		boch_refe_inst = bochRefeInst;
	}
	public String getBoch_guide() {
		return boch_guide;
	}
	public void setBoch_guide(String bochGuide) {
		boch_guide = bochGuide;
	}
	public String getBoch_now_date() {
		return boch_now_date;
	}
	public void setBoch_now_date(String bochNowDate) {
		boch_now_date = bochNowDate;
	}
	public String getBoch_next_place() {
		return boch_next_place;
	}
	public void setBoch_next_place(String bochNextPlace) {
		boch_next_place = bochNextPlace;
	}
	public String getBoch_next_date() {
		return boch_next_date;
	}
	public void setBoch_next_date(String bochNextDate) {
		boch_next_date = bochNextDate;
	}
	public String getBoch_doctor() {
		return boch_doctor;
	}
	public void setBoch_doctor(String bochDoctor) {
		boch_doctor = bochDoctor;
	}
	
	public void insertNewBornChild(){
		ContentValues value;
		value = new ContentValues();
		value.put(BOCH_PROFILEID , this.boch_profileid);
		value.put(BOCH_SEX , this.boch_sex);
		value.put(BOCH_BIRTHDAY , this.boch_birthdar);
		value.put(BOCH_PERID , this.boch_perid);
		value.put(BOCH_FAM_ADDR , this.boch_fam_addr);
		value.put(BOCH_FATH_NAME , this.boch_fath_name);
		value.put(BOCH_FATH_PRO , this.boch_fath_pro);
		value.put(BOCH_FATH_TEL , this.boch_fath_tel);
		value.put(BOCH_FATH_BIRTH , this.boch_fath_birth);
		value.put(BOCH_MUM_NAME , this.boch_mum_name);
		value.put(BOCH_MUM_PRO , this.boch_mum_pro);
		value.put(BOCH_MUM_TEL , this.boch_mum_tel);
		value.put(BOCH_MUM_BIRTH , this.boch_mum_birth);
		value.put(BOCH_GW , this.boch_gw);
		value.put(BOCH_MUM_DISEASE , this.boch_mum_disease);
		value.put(BOCH_MUM_DISEASE_OTHER , this.boch_mum_disease_other);
		value.put(BOCH_PART_INST , this.boch_part_inst);
		value.put(BOCH_BORN_INST , this.boch_born_inst);
		value.put(BOCH_BORN_INST_OTHER , this.boch_born_inst_other);
		value.put(BOCH_SMOTHER , this.boch_smother);
		value.put(BOCH_ABNORMAL , this.boch_abnormal);
		value.put(BOCH_ABNORMAL_INFO , this.boch_abnormal_info);
		value.put(BOCH_HEARING , this.boch_hearing);
		value.put(BOCH_DISEASE , this.boch_disease);
		value.put(BOCH_DISEASE_OTHER , this.boch_disease_other);
		value.put(BOCH_BORN_WEIGHT , this.boch_born_weight);
		value.put(BOCH_NOW_WEIGHT , this.boch_now_weight);
		value.put(BOCH_HEIG_VALUE , this.boch_heig_value);
		value.put(BOCH_FEED_WAY , this.boch_feed_way);
		value.put(BOCH_FEED_MILK , this.boch_feed_milk);
		value.put(BOCH_FEED_MILK_NUM , this.boch_feed_milk_num);
		value.put(BOCH_VOMIT , this.boch_vomit);
		value.put(BOCH_FAECES , this.boch_faeces);
		value.put(BOCH_FAECES_NUM , this.boch_faeces_num);
		value.put(BOCH_BODY_TEMP , this.boch_body_temp);
		value.put(BOCH_PULSE , this.boch_pulse);
		value.put(BOCH_BREATH , this.boch_breath);
		value.put(BOCH_FACE , this.boch_face);
		value.put(BOCH_FACE_OTHER , this.boch_face_other);
		value.put(BOCH_ICTERUS , this.boch_icterus);
		value.put(BOCH_BREGMA_CHOI , this.boch_bregma_choi);
		value.put(BOCH_BREGMA_LEFT , this.boch_bregma_left);
		value.put(BOCH_BREGMA_RIGHT , this.boch_bregma_right);
		value.put(BOCH_BREGMA_OTHER , this.boch_bregma_other);
		value.put(BOCH_EYE_APPEARANCE , this.boch_eye_appearance);
		value.put(BOCH_EYE_APPEARANCE_ABN , this.boch_eye_appearance_abn);
		value.put(BOCH_LEGS , this.boch_legs);
		value.put(BOCH_LEGS_ABN , this.boch_legs_abn);
		value.put(BOCH_NECK_MASS , this. boch_neck_mass);
		value.put(BOCH_NECK_MASS_ABN , this. boch_neck_mass_abn);
		value.put(BOCH_EAR_APPEARANCE , this.boch_ear_appearance);
		value.put(BOCH_EAR_APPEARANCE_ABN , this.boch_ear_appearance_abn);
		value.put(BOCH_NOSE , this.boch_nose);
		value.put(BOCH_NOSE_ABN , this.boch_nose_abn);
		value.put(BOCH_SKIN , this.boch_skin);
		value.put(BOCH_SKIN_OTHER , this.boch_skin_other);
		value.put(BOCH_ORAL , this.boch_oral);
		value.put(BOCH_ORAL_ABN , this.boch_oral_abn);
		value.put(BOCH_ANUS, this.boch_anus);
		value.put(BOCH_ANUS_ABN , this.boch_anus_abn);
		value.put(BOCH_CARD , this.boch_card);
		value.put(BOCH_CARD_ABN , this.boch_card_abn);
		value.put(BOCH_GENITAL, this.boch_genital);
		value.put(BOCH_GENITAL_ABN , this.boch_genital_abn);
		value.put(BOCH_ABDOMEN , this.boch_abdomen);
		value.put(BOCH_ABDOMEN_ABN , this.boch_abdomen_abn);
		value.put(BOCH_SPINE , this.boch_spine);
		value.put(BOCH_SPINE_ABN , this.boch_spine_abn);
		value.put(BOCH_UMBILICAL , this.boch_umbilical);
		value.put(BOCH_UMBILICAL_OTHER , this.boch_umbilical_other);
		value.put(BOCH_REFE_CHOI , this.boch_refe_choi);
		value.put(BOCH_REFE_REASION , this.boch_refe_reasion);
		value.put(BOCH_REFE_INST , this.boch_refe_inst);
		value.put(BOCH_GUIDE , this.boch_guide);
		value.put(BOCH_NOW_DATE , this.boch_now_date);
		value.put(BOCH_NEXT_PLACE , this.boch_next_place);
		value.put(BOCH_NEXT_DATE , this.boch_next_date);
		value.put(BOCH_DOCTOR , this.boch_doctor);
		myContext.getContentResolver().insert(CONTENT_URI_TB12, value);
	}
	
	public void selectNewBornChild(int pro){
		Cursor cursor = myContext.getContentResolver().query(CONTENT_URI_TB12, null,
				BOCH_PROFILEID + "=" + pro + "", null, null);
		while(cursor.moveToNext()){
			this.boch_profileid=cursor.getInt(cursor.getColumnIndex(BOCH_PROFILEID));
			this.boch_sex=cursor.getInt(cursor.getColumnIndex(BOCH_SEX ));
			this.boch_birthdar=cursor.getString(cursor.getColumnIndex(BOCH_BIRTHDAY ));
			this.boch_perid=cursor.getString(cursor.getColumnIndex(BOCH_PERID ));
			this.boch_fam_addr=cursor.getString(cursor.getColumnIndex(BOCH_FAM_ADDR ));
			this.boch_fath_name=cursor.getString(cursor.getColumnIndex(BOCH_FATH_NAME ));
			this.boch_fath_pro=cursor.getString(cursor.getColumnIndex(BOCH_FATH_PRO ));
			this.boch_fath_tel=cursor.getString(cursor.getColumnIndex(BOCH_FATH_TEL ));
			this.boch_fath_birth=cursor.getString(cursor.getColumnIndex(BOCH_FATH_BIRTH ));
			this.boch_mum_name=cursor.getString(cursor.getColumnIndex(BOCH_MUM_NAME ));
			this.boch_mum_pro=cursor.getString(cursor.getColumnIndex(BOCH_MUM_PRO ));
			this.boch_mum_tel=cursor.getString(cursor.getColumnIndex(BOCH_MUM_TEL ));
			this.boch_mum_birth=cursor.getString(cursor.getColumnIndex(BOCH_MUM_BIRTH ));
			this.boch_gw=cursor.getInt(cursor.getColumnIndex(BOCH_GW ));
			this.boch_mum_disease=cursor.getInt(cursor.getColumnIndex(BOCH_MUM_DISEASE ));
			this.boch_mum_disease_other=cursor.getString(cursor.getColumnIndex(BOCH_MUM_DISEASE_OTHER ));
			this.boch_part_inst=cursor.getString(cursor.getColumnIndex(BOCH_PART_INST ));
			this.boch_born_inst=cursor.getString(cursor.getColumnIndex(BOCH_BORN_INST ));
			this.boch_born_inst_other=cursor.getString(cursor.getColumnIndex(BOCH_BORN_INST_OTHER ));
			this.boch_smother=cursor.getInt(cursor.getColumnIndex(BOCH_SMOTHER ));
			this.boch_abnormal=cursor.getInt(cursor.getColumnIndex(BOCH_ABNORMAL ));
			this.boch_abnormal_info=cursor.getString(cursor.getColumnIndex(BOCH_ABNORMAL_INFO ));
			this.boch_hearing=cursor.getInt(cursor.getColumnIndex(BOCH_HEARING ));
			this.boch_disease=cursor.getInt(cursor.getColumnIndex(BOCH_DISEASE ));
			this.boch_disease_other=cursor.getString(cursor.getColumnIndex(BOCH_DISEASE_OTHER ));
			this.boch_born_weight=cursor.getFloat(cursor.getColumnIndex(BOCH_BORN_WEIGHT ));
			this.boch_now_weight=cursor.getFloat(cursor.getColumnIndex(BOCH_NOW_WEIGHT ));
			this.boch_heig_value=cursor.getFloat(cursor.getColumnIndex(BOCH_HEIG_VALUE ));
			this.boch_feed_way=cursor.getInt(cursor.getColumnIndex(BOCH_FEED_WAY ));
			this.boch_feed_milk=cursor.getFloat(cursor.getColumnIndex(BOCH_FEED_MILK ));
			this.boch_feed_milk_num=cursor.getInt(cursor.getColumnIndex(BOCH_FEED_MILK_NUM ));
			this.boch_vomit=cursor.getInt(cursor.getColumnIndex(BOCH_VOMIT ));
			this.boch_faeces=cursor.getInt(cursor.getColumnIndex(BOCH_FAECES ));
			this.boch_faeces_num=cursor.getInt(cursor.getColumnIndex(BOCH_FAECES_NUM ));
			this.boch_body_temp=cursor.getFloat(cursor.getColumnIndex(BOCH_BODY_TEMP ));
			this.boch_pulse=cursor.getInt(cursor.getColumnIndex(BOCH_PULSE ));
			this.boch_breath=cursor.getInt(cursor.getColumnIndex(BOCH_BREATH ));
			this.boch_face=cursor.getInt(cursor.getColumnIndex(BOCH_FACE ));
			this.boch_face_other=cursor.getString(cursor.getColumnIndex(BOCH_FACE_OTHER ));
			this.boch_icterus=cursor.getInt(cursor.getColumnIndex(BOCH_ICTERUS ));
			this.boch_bregma_choi=cursor.getInt(cursor.getColumnIndex(BOCH_BREGMA_CHOI ));
			this.boch_bregma_left=cursor.getFloat(cursor.getColumnIndex(BOCH_BREGMA_LEFT ));
			this.boch_bregma_right=cursor.getFloat(cursor.getColumnIndex(BOCH_BREGMA_RIGHT ));
			this.boch_bregma_other=cursor.getString(cursor.getColumnIndex(BOCH_BREGMA_OTHER ));
			this.boch_eye_appearance=cursor.getInt(cursor.getColumnIndex(BOCH_EYE_APPEARANCE ));
			this.boch_eye_appearance_abn=cursor.getString(cursor.getColumnIndex(BOCH_EYE_APPEARANCE_ABN ));
			this.boch_legs=cursor.getInt(cursor.getColumnIndex(BOCH_LEGS ));
			this.boch_legs_abn=cursor.getString(cursor.getColumnIndex(BOCH_LEGS_ABN ));
			this.boch_neck_mass=cursor.getInt(cursor.getColumnIndex(BOCH_NECK_MASS ));
			this.boch_neck_mass_abn=cursor.getString(cursor.getColumnIndex(BOCH_NECK_MASS_ABN ));
			this.boch_ear_appearance=cursor.getInt(cursor.getColumnIndex(BOCH_EAR_APPEARANCE ));
			this.boch_ear_appearance_abn=cursor.getString(cursor.getColumnIndex(BOCH_EAR_APPEARANCE_ABN ));
			this.boch_nose=cursor.getInt(cursor.getColumnIndex(BOCH_NOSE ));
			this.boch_nose_abn=cursor.getString(cursor.getColumnIndex(BOCH_NOSE_ABN ));
			this.boch_skin=cursor.getInt(cursor.getColumnIndex(BOCH_SKIN ));
			this.boch_skin_other=cursor.getString(cursor.getColumnIndex(BOCH_SKIN_OTHER ));
			this.boch_oral=cursor.getInt(cursor.getColumnIndex(BOCH_ORAL ));
			this.boch_oral_abn=cursor.getString(cursor.getColumnIndex(BOCH_ORAL_ABN ));
			this.boch_anus=cursor.getInt(cursor.getColumnIndex(BOCH_ANUS ));
			this.boch_anus_abn=cursor.getString(cursor.getColumnIndex(BOCH_ANUS_ABN ));
			this.boch_card=cursor.getInt(cursor.getColumnIndex(BOCH_CARD ));
			this.boch_card_abn=cursor.getString(cursor.getColumnIndex(BOCH_CARD_ABN ));
			this.boch_genital=cursor.getInt(cursor.getColumnIndex(BOCH_GENITAL ));
			this.boch_genital_abn=cursor.getString(cursor.getColumnIndex(BOCH_GENITAL_ABN ));
			this.boch_abdomen=cursor.getInt(cursor.getColumnIndex(BOCH_ABDOMEN ));
			this.boch_abdomen_abn=cursor.getString(cursor.getColumnIndex(BOCH_ABDOMEN_ABN ));
			this.boch_spine=cursor.getInt(cursor.getColumnIndex(BOCH_SPINE ));
			this.boch_spine_abn=cursor.getString(cursor.getColumnIndex(BOCH_SPINE_ABN ));
			this.boch_umbilical=cursor.getInt(cursor.getColumnIndex(BOCH_UMBILICAL ));
			this.boch_umbilical_other=cursor.getString(cursor.getColumnIndex(BOCH_UMBILICAL_OTHER ));
			this.boch_refe_choi=cursor.getInt(cursor.getColumnIndex(BOCH_REFE_CHOI ));
			this.boch_refe_reasion=cursor.getString(cursor.getColumnIndex(BOCH_REFE_REASION ));
			this.boch_refe_inst=cursor.getString(cursor.getColumnIndex(BOCH_REFE_INST ));
			this.boch_guide=cursor.getString(cursor.getColumnIndex(BOCH_GUIDE ));
			this.boch_now_date=cursor.getString(cursor.getColumnIndex(BOCH_NOW_DATE ));
			this.boch_next_place=cursor.getString(cursor.getColumnIndex(BOCH_NEXT_PLACE ));
			this.boch_next_date=cursor.getString(cursor.getColumnIndex(BOCH_NEXT_DATE ));
			this.boch_doctor=cursor.getString(cursor.getColumnIndex(BOCH_DOCTOR ));
		}
		cursor.close();
	}
	
	public void updateNewBornChild(int pro){
		ContentValues value;
		value = new ContentValues();
		//value.put(BOCH_PROFILEID , this.boch_profileid);
		value.put(BOCH_SEX , this.boch_sex);
		value.put(BOCH_BIRTHDAY , this.boch_birthdar);
		value.put(BOCH_PERID , this.boch_perid);
		value.put(BOCH_FAM_ADDR , this.boch_fam_addr);
		value.put(BOCH_FATH_NAME , this.boch_fath_name);
		value.put(BOCH_FATH_PRO , this.boch_fath_pro);
		value.put(BOCH_FATH_TEL , this.boch_fath_tel);
		value.put(BOCH_FATH_BIRTH , this.boch_fath_birth);
		value.put(BOCH_MUM_NAME , this.boch_mum_name);
		value.put(BOCH_MUM_PRO , this.boch_mum_pro);
		value.put(BOCH_MUM_TEL , this.boch_mum_tel);
		value.put(BOCH_MUM_BIRTH , this.boch_mum_birth);
		value.put(BOCH_GW , this.boch_gw);
		value.put(BOCH_MUM_DISEASE , this.boch_mum_disease);
		value.put(BOCH_MUM_DISEASE_OTHER , this.boch_mum_disease_other);
		value.put(BOCH_PART_INST , this.boch_part_inst);
		value.put(BOCH_BORN_INST , this.boch_born_inst);
		value.put(BOCH_BORN_INST_OTHER , this.boch_born_inst_other);
		value.put(BOCH_SMOTHER , this.boch_smother);
		value.put(BOCH_ABNORMAL , this.boch_abnormal);
		value.put(BOCH_ABNORMAL_INFO , this.boch_abnormal_info);
		value.put(BOCH_HEARING , this.boch_hearing);
		value.put(BOCH_DISEASE , this.boch_disease);
		value.put(BOCH_DISEASE_OTHER , this.boch_disease_other);
		value.put(BOCH_BORN_WEIGHT , this.boch_born_weight);
		value.put(BOCH_NOW_WEIGHT , this.boch_now_weight);
		value.put(BOCH_HEIG_VALUE , this.boch_heig_value);
		value.put(BOCH_FEED_WAY , this.boch_feed_way);
		value.put(BOCH_FEED_MILK , this.boch_feed_milk);
		value.put(BOCH_FEED_MILK_NUM , this.boch_feed_milk_num);
		value.put(BOCH_VOMIT , this.boch_vomit);
		value.put(BOCH_FAECES , this.boch_faeces);
		value.put(BOCH_FAECES_NUM , this.boch_faeces_num);
		value.put(BOCH_BODY_TEMP , this.boch_body_temp);
		value.put(BOCH_PULSE , this.boch_pulse);
		value.put(BOCH_BREATH , this.boch_breath);
		value.put(BOCH_FACE , this.boch_face);
		value.put(BOCH_FACE_OTHER , this.boch_face_other);
		value.put(BOCH_ICTERUS , this.boch_icterus);
		value.put(BOCH_BREGMA_CHOI , this.boch_bregma_choi);
		value.put(BOCH_BREGMA_LEFT , this.boch_bregma_left);
		value.put(BOCH_BREGMA_RIGHT , this.boch_bregma_right);
		value.put(BOCH_BREGMA_OTHER , this.boch_bregma_other);
		value.put(BOCH_EYE_APPEARANCE , this.boch_eye_appearance);
		value.put(BOCH_EYE_APPEARANCE_ABN , this.boch_eye_appearance_abn);
		value.put(BOCH_LEGS , this.boch_legs);
		value.put(BOCH_LEGS_ABN , this.boch_legs_abn);
		value.put(BOCH_NECK_MASS , this. boch_neck_mass);
		value.put(BOCH_NECK_MASS_ABN , this. boch_neck_mass_abn);
		value.put(BOCH_EAR_APPEARANCE , this.boch_ear_appearance);
		value.put(BOCH_EAR_APPEARANCE_ABN , this.boch_ear_appearance_abn);
		value.put(BOCH_NOSE , this.boch_nose);
		value.put(BOCH_NOSE_ABN , this.boch_nose_abn);
		value.put(BOCH_SKIN , this.boch_skin);
		value.put(BOCH_SKIN_OTHER , this.boch_skin_other);
		value.put(BOCH_ORAL , this.boch_oral);
		value.put(BOCH_ORAL_ABN , this.boch_oral_abn);
		value.put(BOCH_ANUS, this.boch_anus);
		value.put(BOCH_ANUS_ABN , this.boch_anus_abn);
		value.put(BOCH_CARD , this.boch_card);
		value.put(BOCH_CARD_ABN , this.boch_card_abn);
		value.put(BOCH_GENITAL, this.boch_genital);
		value.put(BOCH_GENITAL_ABN , this.boch_genital_abn);
		value.put(BOCH_ABDOMEN , this.boch_abdomen);
		value.put(BOCH_ABDOMEN_ABN , this.boch_abdomen_abn);
		value.put(BOCH_SPINE , this.boch_spine);
		value.put(BOCH_SPINE_ABN , this.boch_spine_abn);
		value.put(BOCH_UMBILICAL , this.boch_umbilical);
		value.put(BOCH_UMBILICAL_OTHER , this.boch_umbilical_other);
		value.put(BOCH_REFE_CHOI , this.boch_refe_choi);
		value.put(BOCH_REFE_REASION , this.boch_refe_reasion);
		value.put(BOCH_REFE_INST , this.boch_refe_inst);
		value.put(BOCH_GUIDE , this.boch_guide);
		value.put(BOCH_NOW_DATE , this.boch_now_date);
		value.put(BOCH_NEXT_PLACE , this.boch_next_place);
		value.put(BOCH_NEXT_DATE , this.boch_next_date);
		value.put(BOCH_DOCTOR , this.boch_doctor);
		myContext.getContentResolver().update(CONTENT_URI_TB12, value, 
				BOCH_PROFILEID + "=" + pro + "", null);
	}
	
	public void deleteNewBornChild(int pro){
		myContext.getContentResolver().delete(CONTENT_URI_TB12,
				BOCH_PROFILEID + "=" + pro + "", null);
	}

}
